package com.agan.workflow.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.agan.common.core.annotation.Excel;
import com.agan.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 流程分类对象 bpm_type
 * 
 * @author agan
 * @date 2024-01-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("value = bpm_type")
public class BpmType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    @TableId(value = "type_id")
    private String typeId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    @TableField(value = "type_name")
    private String typeName;

    /** 父级ID */
    @Excel(name = "父级ID")
    @TableField(value = "parent_id")
    private String parentId;

    /** 排序 */
    @Excel(name = "排序")
    @TableField(value = "order_num")
    private Long orderNum;

    /** 分类描述 */
    @Excel(name = "分类描述")
    @TableField(value = "note")
    private String note;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @TableField(value = "status")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    @TableField(value = "del_flag")
    private String delFlag;

    /** 祖级列表 */
    @TableField(value = "ancestors")
    private String ancestors;

    @TableField(exist = false)
    private List<BpmType> children;


}
